﻿using System;
using System.Drawing;

namespace Citi.Helpers
{
    public class HighChartsHelper
    {
        public class ChartInformation
        {
            public Serie[] Series { get; set; }
            public string[] Categories { get; set; }
        }

        public class Serie
        {
            public string Name { get; set; }
            public object[] Data { get; set; }
            public Color? Color { get; set; }
            public object[] Categories { get; set; }
            public ChartInformation Drilldown { get; set; }

            public string ColorHexadecimal
            {
                get
                {
                    return Color.HasValue ? Color.Value.ToHexadecimal() : null;
                }
            }
        }
    }
}
